---@class RiichiMahjong.Player : Base.Player
local Player = Fk.Base.Player:subclass("RiichiMahjong.Player")

-- 手写泛型 这里帮你写了

---@class RiichiMahjong.Player
---@field public next RiichiMahjong.Player
---@field public dealers_wind integer @ 自风
---@field public card_num integer @ 牌数
---@field public drawn integer @ 是否刚摸牌
---@field public point integer @ 点数
---@field public melds RiichiMahjong.Meld[] @ 吃碰杠的牌
---@field public discard_pile integer[] @ 弃牌堆

function Player:initialize()
  Fk.Base.Player.initialize(self)

  -- TODO
  self.dealers_wind = 0
  self.card_num = 0
  self.drawn = -1
  self.point = 0
  self.melds = {}
  self.discard_pile = {}
end

function Player:serialize()
  local o = Fk.Base.Player.serialize(self)

  -- TODO

  return o
end

function Player:deserialize(o)
  Fk.Base.Player.deserialize(self, o)

  -- TODO
end

return Player

